package com.wwwc.index.web.servlet;

import java.io.*;
import java.awt.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.ServletRequestWrapper;
import java.net.*;
import com.wwwc.util.web.MyMessage;

public class ImageLoadServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException
    {
	doPost(request, response);
    }

    public void doPost(HttpServletRequest request, HttpServletResponse response)
	throws IOException, ServletException
    {
	//response.setContentType("text/html");
	//HttpSession session  = request.getSession(true);
	
        //PrintWriter out = response.getWriter();
	
	String id    = request.getParameter("id");
	String dir   = request.getParameter("dir");
	String image = request.getParameter("image");

	try {
	    RequestDispatcher rd = request.getRequestDispatcher(image);
	    rd.forward(request,response);
	}
	catch (ServletException e) {
	    return;
	}
    }
}






